import request from '@/utils/request'
// 登录
export function loginApi(data) {
  return request({
    url: '/sys/login',
    method: 'post',
    data
  })
}
// 获取用户资料
export function getInfoApi(token) {
  return request({
    url: '/sys/profile',
    method: 'get'
  })
}
// 修改用户密码
export const updatePwdApi = (data) => {
  return request({
    url: '/sys/user/updatePass',
    method: 'put',
    data
  })
}
